package State;

/**
 * @author duanzhizhou
 * @date 2024/10/15
 */
public class Time {
    
    private int hour;
    
    private State state = new Morning();
    
    public int getHour() {
        return hour;
    }
    
    public void setHour(int hour) {
        this.hour = hour;
    }
    
    public State getState() {
        return state;
    }
    
    public void setState(State state) {
        this.state = state;
    }
    
    public void show() {
        this.state.show(this);
    }
}
